<template>
  <div class="model-form">
    <el-page-header @back="goBack" content="满减活动详情">
    </el-page-header>
    <el-form class="viewForm" label-width="80px">
            <el-col :span="20">
                <el-form-item label="名称">
                    <div v-html="viewModel.name"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="商家">
                    <div v-html="viewModel.shopName"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="开始时间">
                    <div v-html="viewModel.beginTime"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="截止时间">
                    <div v-html="viewModel.endTime"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="参与设置">
                    <div v-html="viewModel.fullReductionWayName"></div>
                </el-form-item>
            </el-col>
    </el-form>
  </div>
</template>

<script>
  import common from "@/mixins/common.js";
  var config = {};
  config.methods = {};
  config.mixins = [common];

  config.data = function () {
    return {
      viewModel: {},
      activeIndex: "1"
    }
  };
  config.mounted = function () {
    var id = this.$route.query.id;
    var self = this;
    var data = {};
    data.id = id;
    this.postData("/tenantRest/fullreduction/view.htm", data, function (res) {
      if (res.code == 0) {
        self.viewModel = res;
      }
    });
  }

  export default config;
</script>

<style scoped>

</style>